/**
 * 故障级别
 * 
 * @export
 * @class Fault
 */
export class FaultLevel {
    /**
     * Creates an instance of FaultLevel.
     * @param {number} faultLevelId 级别ID
     * @param {string} faultLevelName 级别名称
     * @param {number} soundId 声音文件ID
     * @param {number} unAlarm 是否报警(级别比Failure表中的IsAlarm低)
     * @param {string} faultLevelColor 颜色配置
     * @param {string} faultLevelDesc 级别描述
     * @param {number} faultLevelWeight 级别权重（值越大权重越高）
     * @param {number} deviceCategoryId 设备分类Id
     * @param {any} soundContent 声音内容
     * @param {any} faultLevelCount 故障等級数量
     * @memberof FaultLevel
     */
    constructor(
        public faultLevelId: number,
        public faultLevelName: string,
        public soundId: number,
        public unAlarm: boolean,
        public faultLevelColor: string,
        public faultLevelDesc: string,
        public faultLevelWeight: number, 

        public deviceCategoryId?:number,
        public content?:any,
        public soundContent?:any,
        public soundName?:string,
        public faultLevelCount?:number,
        public isChecked?:boolean,
    ) {
        Object.defineProperty(this, "soundContent", { enumerable: false });
        Object.defineProperty(this, "faultLevelCount", { enumerable: false });
    }
  

}

export interface DeviceCategoryFaultLevel {
    deviceCategoryId:number;
    
    deviceCategoryName: string;

    faultLevels:FaultLevel[];
}


// WEBPACK FOOTER //
// ./src/app/entity/fault-level.model.ts